import Request from '@/axios/request'

export function getAdminPermissions(params) {
  return Request.get('admin-permissions', { params })
}

export function createAdminPermission() {
  return Request.get('admin-permissions/create')
}

export function storeAdminPermission(data) {
  return Request.post('admin-permissions', data)
}

export function updateAdminPermission(id, data) {
  return Request.put(`admin-permissions/${id}`, data)
}

export function editAdminPermission(id) {
  return Request.get(`admin-permissions/${id}/edit`)
}

export function destroyAdminPermission(id) {
  return Request.delete(`admin-permissions/${id}`)
}

export function showAdminPermission(id) {
  return Request.get(`admin-permissions/${id}`)
}
